﻿@model IContentModel
<li><a href="@Model.Url">@Model.Name</a>
    @{
        // get children
        var children = Model.GetAbstractChildren().ToList();

        // check
        if (children.Count > 0)
        {
        <ul>
            @{
            foreach (var child in children)
            {
                Html.RenderPartial("~/Views/ProggyPartials/_TempSiteMapPartial.cshtml", child);
            }
            }
        </ul>
        }
    }
</li>
